package field_method05;

public class PassObject {

    /**
     *
     * @param circle 圆对象
     * @param time  次数
     */
    public void printAreas(Circle circle,int time){
        System.out.println("半径\t\t" + "面积");
        //初始化值 循环条件 循环体 数据更新迭代
        for (int i = 1; i <= time; i++) {

            circle.radius = i;
            double s = circle.findArea();

            System.out.println(circle.radius +
                    "\t\t" + s);
        }

    }
}
